#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	float price = 0;
	scanf("%f", &price);
	if (price >= 5000)
	{
		price *= 0.6;
	}
	else if (price >= 2000)
	{
		price *= 0.7;
	}
	else if (price >= 500)
	{
		price *= 0.8;
	}
	else if (price >= 100)
	{
		price *= 0.9;
	}
	printf("%.1f", price);
	return 0;
}
#include <stdio.h>
int main()
{
	float a = 0;
	char b = 0;
	scanf("%f %c", &a, &b);
	int price = 0;
	if (a <= 1)
	{
		price = 20;
	}
	else if ((int)(a * 10) % 10 == 0)
	{
		price = 20 + (int)(a - 1) * 1;
	}
	else
	{
		price = 20 + (int)(a - 1 + 1) * 1;
	}
	if (b == 'y')
	{
		price += 5;
	}
	printf("%d", price);
	return 0;
}
#include <stdio.h>
int main()
{
	int x = 0, y = 0, x1 = 0, y1 = 0;
	scanf("%d %d", &x, &y);
	scanf("%d %d", &x1, &y1);
	if (y1 > y)
	{
		printf("u");
	}
	if (x1 > x)
	{
		printf("r");
	}
	if (y1 < y)
	{
		printf("d");
	}
	if (x1 < x)
	{
		printf("l");
	}
	return 0;
}